import Vue from "vue";

import App from "./App.vue";
import TypeNav from "@/components/TypeNav";
import router from "./router";
import store from "./store";
import * as API from '@/api'; // 分别暴露不可以用默认的引入！！

// 全局配置
import "./styles/reset.css";
import "./styles/iconfont.css";
import './plugins/element.js'
import { Button,Pagination,Dialog} from 'element-ui';

Vue.config.productionTip = false;
// 添加到 Vue 的原型对象上，方便组件使用
Vue.prototype.$API = API

Vue.component("TypeNav", TypeNav);

Vue.use(Button);
Vue.use(Pagination);
Vue.use(Dialog);


new Vue({
  router,
  store,

  render: (h) => h(App),
}).$mount("#app");
